package com.free.note.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.free.common.core.annotation.Excel;
import com.free.common.core.web.domain.BaseEntity;
import lombok.Data;

import java.util.List;

/**
 * 类型树对象 type_tree
 *
 * @author free
 * @date 2023-03-14
 */
@Data
public class TypeTree extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 标签
     */
    @Excel(name = "标签")
    private String label;

    /**
     * 父ID
     */
    @Excel(name = "父ID")
    private Long pid;

    @TableField(exist = false)
    private Long value;

    @TableField(exist = false)
    private List<TypeTree> children;

}
